// 这里放用户相关的接口请求
// 引入axios
import request from '@/utils/request'

// 一般导出登录接口
export const login = function(mobile,code){
    return request({
        method:'POST',
        url:'/mp/v1_0/authorizations',
        data:{
            mobile:mobile,
            code:code,
        }
    });
}

// 封装获取用户信息接口
export const getUserInfo = function(){
    return request({
        method:'GET',
        url:'mp/v1_0/user/profile',
        // 身份认证放到request统一配置
        // headers: {
        //     Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Mjc0NTM1MjYsInVzZXJfaWQiOjEsInJlZnJlc2giOmZhbHNlLCJ2ZXJpZmllZCI6dHJ1ZX0.3cXEX8UWzF_-4qaFXHFZwsSKJU04eKjorNGuxHVCkUA'
        // }
    });
}




